import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * 根据 ID 删除 Works 信息
 * /works/{id}
 */
export function deleteWorksById(params: DeleteWorksByIdParams, config?: AxiosRequestConfig) {
    return request.delete<DeepRequired<boolean>>(`/works/${params.id}`, config);
}

export interface DeleteWorksByIdParams {
    id: number;
}
